﻿<%template _header%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.Utility%>
<!--header end-->

<script type="text/javascript">
	var opwdok = false;
	var pwdok = false;
	var pwd1ok = false;
	
	function checkform()
	{
		$("creatform").submit();
	}
</script>	

<!--主体-->
<div class="layout-cols2">
<div class="col1" style ="width:70%">
		<div class="box">
			<div class="caption"><%template _memgroupmenu%>	</div>
			<div class="content">
				
				<div class="pannelbody">
					<%if ErrorCount==0%>
					
						<%if IsPost%>
						
							<%template _msgbox%>
							
						<%else%>
							
							<form action="" method="post" ID="creatform" enctype="multipart/form-data">
								
								<div style ="margin-bottom:8px;">
								<label for="groupname">圈子名称：</label>
								<input name="groupname" id="groupname" type="text" 
								       class="colorblue" onfocus="this.className='colorfocus';"
								       onblur="this.className='colorblue'"
								       value="{GroupData.GroupName}"
								       size="20" />
								</div>
								
								<div style ="margin-bottom:8px; ">
								<label for="grouplogo">当前圈子头像：</label>
								<div  style ="margin-left:40px">
								<table>
								<tr><td>
								<img  src="{GroupData.Logo}" width="70px" height="70" class ="photoimg"/></td>
								<td  valign="bottom"  style ="padding-left:30px;">
								<div style="margin-left:5px;">
								<label for="changegrouplogo">更换圈子头像</label></div>
							
								<input name="grouplogo" id="grouplogo" type="file" size="20" 
								       class="colorblue" onfocus="this.className='colorfocus';" 
								       onblur="this.className='colorblue';" 
								       />选择本地图片文件
								       </td></tr></table></div>
								 </div>
							
								<div style ="margin-bottom:8px;">
								<label for="groupkeyword">圈子关键字：</label>
								<input name="groupkeyword" id="groupkeyword" type="text" 
								       class="colorblue" onfocus="this.className='colorfocus';"
								       onblur="this.className='colorblue'"
								       value="{GroupData.Keyword}"
								       size="60" />
								</div>
								
								<div style ="margin-bottom:8px;">
								<label for="groupintro">圈子介绍：</label>
								<input name="groupintro" id="groupintro" type="text" 
								       class="colorblue" onfocus="this.className='colorfocus';"
								       onblur="this.className='colorblue'"
								       value="{GroupData.Introduction}"
								       size="60" />
								</div>
							
								<div style ="margin-bottom:8px;">
								<label for="groupbrowser">发帖权限：</label>
  				      <input type="radio" name="groupbrowser" value="0"
					             class="colorblue" onfocus="this.className='colorfocus';"
					             onblur="this.className='colorblue'" 
					             <%csharp%>if(GroupData.BrowserPermission == Constants.BrowserOpen) { <%/csharp%>
					             checked
					             <%csharp%> } <%/csharp%>
					             >所有人都能发帖 &nbsp;&nbsp;
	  			      <input type="radio" name="groupbrowser" value="1" 
					             class="colorblue" onfocus="this.className='colorfocus';"
					             onblur="this.className='colorblue'" 
					             <%csharp%>if(GroupData.BrowserPermission == Constants.BrowserLimit) { <%/csharp%>
					             checked
					             <%csharp%> } <%/csharp%>
					             />只有圈子成员才能法帖
					             </div>
								
								<div style ="margin-bottom:8px;">
								<label for="groupjoin">加入权限：</label>
  				      <input type="radio" name="groupjoin" value="0"
					             class="colorblue" onfocus="this.className='colorfocus';"
					             onblur="this.className='colorblue'" 
					             <%csharp%>if(GroupData.JoinPermission == Constants.JoinOpen) { <%/csharp%>
					             checked
					             <%csharp%> } <%/csharp%>
					             >加入圈子不需要批准 &nbsp;&nbsp;
	  			      <input type="radio" name="groupjoin" value="1" 
					             class="colorblue" onfocus="this.className='colorfocus';"
					             onblur="this.className='colorblue'" 
					             <%csharp%>if(GroupData.JoinPermission == Constants.JoinLimit) { <%/csharp%>
					             checked
					             <%csharp%> } <%/csharp%>
					             >加入圈子需要管理员批准
					             </div>
														
								<div align ="right">
								<label for="Submit">&nbsp;</label>
								<input type="button" name="btnSubmit" value="确定" class="buttonstyle" 
								       ID="btnSubmit" onclick="checkform();"/>
								</div>
							</form>
							
						<%/if%>
					
						
					<%else%>
						<%template _memerrmsgbox%>
					<%/if%>
					
			  </div>
			</div>
		</div>
</div>
<div class="col2">
	    
	    <%template _UserMenu%>
	  
	    <%template _PatientMenu%>
	    <%template _GroupMenu%>
	    <%template _MessageMenu%>
	
</div>
</div>
<!--主体-->
<%template _footer%>
